﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 设计模式.享元模式
{
    public class Circle : IShape
    {
        public string Color { set; get; }
        public int X { set; get; }
        public int Y { set; get; }
        public int Radius { set; get; }

        public Circle(string color)
        {
            Color = color;
        }

        public void Draw()
        {
            Console.WriteLine("Circle: Draw() [Color : " + Color+ ", x : " + X + ", y :" + Y + ", radius :" + Radius);
        }
    }
}
